//
//  HRCollectionViewCell.m
//  CycleCollectionView
//
//  Created by Hello Cai on 2021/9/21.
//

#import "HRCollectionViewCell.h"

@interface HRCollectionViewCell ()
@property (nonatomic, strong) UILabel *textLabel;
@end

@implementation HRCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        [self buildUI];
    }
    return self;
}

- (void)buildUI {
    self.textLabel = [[UILabel alloc] initWithFrame:self.bounds];
    self.textLabel.textAlignment = NSTextAlignmentCenter;
    self.textLabel.font = [UIFont fontWithName:@"AmericanTypewriter" size:50];
    [self.contentView addSubview:self.textLabel];
}

- (void)setTitle:(NSString *)title {
    self.textLabel.text = title;
}

@end
